package homework.oo2.PersonExercise02;

public class PersonTest {
    public static void main(String[] args) {
        Student s1 = new Student("王大雷",23,"中南海","hsd2408","001");
        s1.eat();
        s1.sleep();
        s1.sayHi();

        System.out.println("=============");
        Teacher t1 = new Teacher("李琳",45,"崂山",8000.0);
        t1.eat();
        t1.sleep();
        t1.sayHi();
        t1.teach();

        System.out.println("==============");
        Doctor d1 = new Doctor("王大锤",32,"古北壹号","院长");
        d1.eat();
        d1.sleep();
        d1.sayHi();
        d1.cut();

    }
}
